package cn.tj212.xiaoyin.core.user.service;

import cn.tj212.xiaoyin.common.page.TailPage;
import cn.tj212.xiaoyin.core.user.domain.UserCourseSection;
import cn.tj212.xiaoyin.core.user.domain.UserCourseSectionDto;

import java.util.List;

public interface IUserCourseSectionService {

    public UserCourseSection getById(Long id);

    public List<UserCourseSection> queryAll(UserCourseSection queryEntity);

    public UserCourseSection queryLatest(UserCourseSection queryEntity);

    /**
     * 分页获取
     * @param queryEntity
     * @param page
     * @return
     */
    public TailPage<UserCourseSectionDto> queryPage(UserCourseSection queryEntity, TailPage<UserCourseSectionDto> page);

    public void createSelectivity(UserCourseSection entity);

    /**
     * 根据id更新
     * @param entity
     */
    public void update(UserCourseSection entity);

    /**
     * 根据id选择性更新
     * @param entity
     */
    public void updateSelectivity(UserCourseSection entity);

    public void delete(UserCourseSection entity);

    public void deleteLogic(UserCourseSection entity);
}
